package model

type MessageSendEvent struct {
	Id         int64  `json:"id,omitempty" gorm:"primaryKey;not null;autoIncrement"`
	UserId     int64  `json:"from_user_id,omitempty" gorm:"column:from_user_id;not null"`
	ToUserId   int64  `json:"to_user_id,omitempty" gorm:"column:to_user_id;not null"`
	MsgContent string `json:"content,omitempty" gorm:"column:content"`
	IsViewed   bool   `json:"-"  gorm:"column:is_viewed"`
	CreateTime int64  `json:"create_time,omitempty" gorm:"column:create_time"`
}

type MessagePushEvent struct {
	FromUserId int64  `json:"user_id,omitempty" gorm:"primaryKey;not null;autoIncrement"`
	MsgContent string `json:"msg_content,omitempty"`
}
